<?php

namespace app\models;

use app\models\common\admin\log\CommonActionLog;
use Yii;

/**
 * This is the model class for table "{{%topic}}".
 *
 * @property integer $id
 * @property integer $store_id
 * @property integer $type
 * @property string $title
 * @property string $sub_title
 * @property string $cover_pic
 * @property string $content
 * @property integer $read_count
 * @property integer $virtual_read_count
 * @property integer $layout
 * @property integer $sort
 * @property integer $agree_count
 * @property integer $virtual_agree_count
 * @property integer $virtual_favorite_count
 * @property integer $addtime
 * @property integer $is_chosen
 * @property integer $is_delete
 * @property string $qrcode_pic
 */
class TopicPl extends \yii\db\ActiveRecord
{
	
	/**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%topic_pl}}';
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['store_id','user_id','topic_id'], 'integer'],
			[['comment'], 'required'],
        ];
    }
	
	public function attributeLabels() 
    { 
        return [ 
            'store_id' => 'Store ID',
            'user_id' => '用户',
			'topic_id'=>'专题id',
			'comment'=>'评论内容',
           
        ]; 
    }


}
